package com.eva.androidlibrary.api.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 店铺信息
 *
 * @author eva
 * @date 2015-11-17 05:24
 */
public class ShopInfo extends BaseBean implements Parcelable {

    /** 店铺ID */
    @JSONField(name = "shopid")
    private String id;

    /** 店铺名称 */
    @JSONField(name = "title")
    private String name;

    /** 店铺地址 */
    private String address;

    /** 店铺图片地址 */
    private String logo;

    /** 店铺联系方式 */
    @JSONField(name = "phone")
    private String mobile;

    /** 营业时间 */
    @JSONField(name = "service_time")
    private String openTime;

    /** 店铺介绍 */
    private String intro;

    /** 商品数量 */
    @JSONField(name = "goods_num")
    private int goodsNum;

    /** 评论数量 */
    @JSONField(name = "cmt_num")
    private int cmtNum;

    /** 粉丝数 */
    @JSONField(name = "fans_num")
    private int fansNum;

    /** 总订单数量 */
    @JSONField(name = "order_total_num")
    private int orderTotalNum;

    /** 待接订单数量 */
    @JSONField(name = "order_stay_num")
    private int orderStayNum;

    /** 立即送单数 */
    @JSONField(name = "order_once_num")
    private int orderOnceNum;

    /** 按时送单数 */
    @JSONField(name = "order_time_num")
    private int orderTimeNum;

    /** 营业额 */
    private int revenue;

    /** 满意度 */
    private String satisfaction;

    /** 店员数 */
    @JSONField(name = "clerk_num")
    private int clerkNum;

    /** 配送员数量 */
    @JSONField(name = "courier_num")
    private int courierNum;

    /** 日销量 */
    private int saleDaily;

    /** 经度 */
    private String longitude;

    /** 纬度 */
    private String latitude;

    /** 当前用户店铺角色，1创建者即超级管理员,2管理者,10普通店员 */
    private int role;

    /** 店铺状态,0审核中,1审核通过,2审核不通过 */
    private int status;

    public ShopInfo() {
    }

    public ShopInfo(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOpenTime() {
        return openTime;
    }

    public void setOpenTime(String openTime) {
        this.openTime = openTime;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public int getSaleDaily() {
        return saleDaily;
    }

    public void setSaleDaily(int saleDaily) {
        this.saleDaily = saleDaily;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public int getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(int goodsNum) {
        this.goodsNum = goodsNum;
    }

    public int getCmtNum() {
        return cmtNum;
    }

    public void setCmtNum(int cmtNum) {
        this.cmtNum = cmtNum;
    }

    public int getFansNum() {
        return fansNum;
    }

    public void setFansNum(int fansNum) {
        this.fansNum = fansNum;
    }

    public int getOrderTotalNum() {
        return orderTotalNum;
    }

    public void setOrderTotalNum(int orderTotalNum) {
        this.orderTotalNum = orderTotalNum;
    }

    public int getOrderStayNum() {
        return orderStayNum;
    }

    public void setOrderStayNum(int orderStayNum) {
        this.orderStayNum = orderStayNum;
    }

    public int getOrderOnceNum() {
        return orderOnceNum;
    }

    public void setOrderOnceNum(int orderOnceNum) {
        this.orderOnceNum = orderOnceNum;
    }

    public int getOrderTimeNum() {
        return orderTimeNum;
    }

    public void setOrderTimeNum(int orderTimeNum) {
        this.orderTimeNum = orderTimeNum;
    }

    public int getRevenue() {
        return revenue;
    }

    public void setRevenue(int revenue) {
        this.revenue = revenue;
    }

    public String getSatisfaction() {
        return satisfaction;
    }

    public void setSatisfaction(String satisfaction) {
        this.satisfaction = satisfaction;
    }

    public int getClerkNum() {
        return clerkNum;
    }

    public void setClerkNum(int clerkNum) {
        this.clerkNum = clerkNum;
    }

    public int getCourierNum() {
        return courierNum;
    }

    public void setCourierNum(int courierNum) {
        this.courierNum = courierNum;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.address);
        dest.writeString(this.logo);
        dest.writeString(this.mobile);
        dest.writeString(this.openTime);
        dest.writeString(this.intro);
        dest.writeInt(this.goodsNum);
        dest.writeInt(this.cmtNum);
        dest.writeInt(this.fansNum);
        dest.writeInt(this.orderTotalNum);
        dest.writeInt(this.orderStayNum);
        dest.writeInt(this.orderOnceNum);
        dest.writeInt(this.orderTimeNum);
        dest.writeInt(this.revenue);
        dest.writeString(this.satisfaction);
        dest.writeInt(this.clerkNum);
        dest.writeInt(this.courierNum);
        dest.writeInt(this.saleDaily);
        dest.writeString(this.longitude);
        dest.writeString(this.latitude);
        dest.writeInt(this.role);
        dest.writeInt(this.status);
    }

    protected ShopInfo(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.address = in.readString();
        this.logo = in.readString();
        this.mobile = in.readString();
        this.openTime = in.readString();
        this.intro = in.readString();
        this.goodsNum = in.readInt();
        this.cmtNum = in.readInt();
        this.fansNum = in.readInt();
        this.orderTotalNum = in.readInt();
        this.orderStayNum = in.readInt();
        this.orderOnceNum = in.readInt();
        this.orderTimeNum = in.readInt();
        this.revenue = in.readInt();
        this.satisfaction = in.readString();
        this.clerkNum = in.readInt();
        this.courierNum = in.readInt();
        this.saleDaily = in.readInt();
        this.longitude = in.readString();
        this.latitude = in.readString();
        this.role = in.readInt();
        this.status = in.readInt();
    }

    public static final Creator<ShopInfo> CREATOR = new Creator<ShopInfo>() {
        public ShopInfo createFromParcel(Parcel source) {
            return new ShopInfo(source);
        }

        public ShopInfo[] newArray(int size) {
            return new ShopInfo[size];
        }
    };
}
